﻿using ERPPublic;
using ProductManagement.Domain.Dtos;
using SqlSugar;

namespace ProductManagement.Domain.ProductsDomain
{
    /// <summary>
    /// 产品表
    /// </summary>
    [SugarTable("Product")]
    public class Product: Audit
    {
        /// <summary>
        /// 产品Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ProductId { get; set; }
        /// <summary>
        /// 标识
        /// </summary>

        public int? PCharacteristic { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PUnit { get; set; }
       
        /// <summary>
        /// 产品分类ID
        /// </summary>

        public int ProductTypeId { get; set; }
    }
    public class ProductPage
    {
        public int PageLast { get; set; }
        public int SumCount { get; set; }
        public List<ProductSelectDto> list { get; set; }
    }




}
